﻿@model ArchiveViewModel
@{
    var archiveList = Model.ArchiveList;
    var classify = Model.Classify;
 
}
<div class="imageNews">
    <div class="title">
        <span>@Html.ActionLink("【更多...】", "Index", "Archive", new { eTag = ChineseCharHelper.ConvertToPinYin(classify.ETag) }, null)</span>
        <strong>@classify.Title</strong>
    </div>
    <div class="content">
        <ul>
            @{
                for (int i = 0; i < Model.PageSize; i++)
                {
                    if (i < archiveList.Count)
                    {
                        var articleItem = archiveList[i];
                        var item = archiveList[i].Album[0];
                  
                <li>
                    <div class="i">
                        <a title="@articleItem.Title" href="@Url.Action("Article", "Archive", new { tagName = ChineseCharHelper.ConvertToPinYin(articleItem.ETag, "-") })"`>
                            <img alt="@item.Title" src="@Url.Action("Thumb"
                    , new { w = 150, h = 150, s = string.Format("{0}/{1}/{2}", Model.ImageRoot, articleItem.NewsId, item.ImageName) })" />
                        </a>
                    </div>
                    <div class="t">
                        @Html.ActionLink(articleItem.Title, "Article", "Archive", new { tagName = ChineseCharHelper.ConvertToPinYin(articleItem.ETag, "-") }, null)
                    </div>
                </li>
                    }
                    else
                    {  
                <li>
                    <div class="i">
                        <img alt="" src="" />
                    </div>
                    <div class="t">
                    </div>
                </li>
                    }

                }
            }
        </ul>
    </div>
    <div class="bottom">
    </div>
</div>
